<script setup lang="ts">
import bgImg from "@/assets/bg-light-raw.jpg?preset=modern";
</script>

<template>
  <n-carousel autoplay>
    <img class="carousel-img" :src="bgImg.img.src" />
    <img
      class="carousel-img"
      src="https://naive-ui.oss-cn-beijing.aliyuncs.com/carousel-img/carousel2.jpeg"
    />
  </n-carousel>
</template>

<style scoped lang="scss">
.carousel-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}
</style>
